package UIFree
{
	import flash.geom.Rectangle;
	
	public class uif_hotspotEllipse extends uif_ecomponent {
		public function uif_hotspotEllipse(parent:uif_component, ax:int=0, ay:int=0, awidth:int=0, aheight:int=0, styleClass:String='') {
			super(parent, ax, ay, awidth, aheight, styleClass);
		}
		
		override protected function paint(a_styleClass:String, a_method: String = ''):void {
			var hsRect: Rectangle 	 	= getBorder();
			var hPercent: Number 		= (style['heightPercent']?style['heightPercent']:0.5);
			hsRect.height =  hsRect.height * hPercent;
			hsRect.inflate(-hPercent * hsRect.width * 0.3, 0);
			begin2(style);
			graphics.drawEllipse(hsRect.x, hsRect.y, hsRect.width, hsRect.height);
			graphics.endFill();
		}
	}
}